#include <QCoreApplication>
#include <udpclient.h>
#include <QTextCodec>

//设置编码为UTF8
static void SetUTF8Code()
{
#if (QT_VERSION <= QT_VERSION_CHECK(5,0,0))
    QTextCodec *codec = QTextCodec::codecForName("UTF-8");
    QTextCodec::setCodecForLocale(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForTr(codec);
#endif
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    SetUTF8Code();
    UdpClient *udpClient = new UdpClient;
    udpClient->dumpObjectInfo();

    return a.exec();
}
